package com.gome.axwl.aoc.facade;


import com.gome.axwl.aoc.entity.dto.PageResultDto;
import com.gome.axwl.aoc.entity.exception.ZQException;
import com.gome.axwl.aoc.entity.po.ContractTemplatePo;
import com.gome.axwl.aoc.entity.zq.ZQContractImage;

import java.util.List;

/**
 * Created by wanglongyu on 2018/7/16.
 */
public interface ContractTemplateFacade {
    PageResultDto<ContractTemplatePo> queryTemplate(String templateName, Integer pageNum, Integer pageSize);

    public String download(String templateNo) throws ZQException;

    Integer update(String templateNo,String templateName,String property,Integer signWay);

    int delete(String templateNo);

    List<ContractTemplatePo> queryAll();

    /***
     * 新增模板
     * @param base64
     * @param property
     * @param signWay
     * @param templateName
     * @return
     */
    int addTemplate(String base64,String property,Integer signWay,String templateName) throws ZQException;

    /***
     * 下载空白合同模板
     * @param t_no
     * @return
     */
    ZQContractImage downloadEmptyContractImg(String t_no) throws ZQException;
}
